package Demo2;

import Demo1.DemoTest1;

public class DemoTest2 extends DemoTest1 {
    public void func() {
        System.out.println(super.a); //不同包 子类
    }
    public static void main(String[] args) {
        DemoTest2 demotest2 = new DemoTest2();
        demotest2.func();
    }
}
